package com.mazaiting.crashdemo

import android.app.Application
import com.mazaiting.report.EmailReportHandler

/**
 * Created by mazaiting on 2018/7/19.
 */
class CrashApplication : Application() {
  override fun onCreate() {
    super.onCreate()
    // 全局异常捕获 -- 邮件获取
    EmailReportHandler(this)
            .setUserName("1449689807@qq.com")
            .setPassWord("aegstpjlwlsxicdf")
            .setFromAddress("1449689807@qq.com")
            .setToAddress("1425941077@qq.com");
  }
}